from selenium.webdriver.common.by import By
from zhoukao3_114.Page import Page

class Page2(Page):
    shuru=(By.XPATH,'//*[@id="wd"]')
    def send_shuru(self):
        self.send_keys(self.shuru,'智能手机')

    sousuo=(By.CLASS_NAME,'search-btn')
    def click_sousuo(self):
        self.click(self.sousuo)

    sousuody=(By.XPATH,'/html/body/div[6]/div/div[2]/div[1]/div[2]/a[2]')
    def dy(self):
        self.text(self.sousuody)
